﻿<%@ Page EnableEventValidation="false" %>
<%@ Import Namespace="CchenSoft.Portal" %>
<%@ Register TagPrefix="portal" Namespace="CchenSoft.Portal.Web.Controls" Assembly="CchenSoft.Portal" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <portal:Title id="title" runat="server"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <portal:MetaData id="keywords" runat="server" />
    <portal:MetaData id="description" runat="server" />
    <meta http-equiv="pragma" content="no-cache" />

	<script type="text/javascript" src="/scripts/jquery-1.2.6.js"></script>
	<script type="text/javascript" src="/scripts/thickbox.js"></script>	
    
	<link rel="Stylesheet" type="text/css" href="/styles/thickbox.css" />
    <link rel="Stylesheet" type="text/css" href="/themes/default/styles/main.css" />
<% if (PortalContext.Current.IsAdmin) { %>
	<script type="text/javascript" src="/scripts/portal.js"></script>
	<script type="text/javascript" src="/themes/default/scripts/google_drag.js"></script>	
<% } %>
</head>
<body>

<% if (PortalContext.Current.IsAdmin) { %>
<portal:Portlets id="portlets" runat="server"></portal:Portlets>
<% } %>
<portal:Top id="top" runat="server"></portal:Top>

<portal:LayoutControl id="content" runat="server"></portal:LayoutControl>

<portal:Bottom id="buttom" runat="server"></portal:Bottom>
<% if (PortalContext.Current.IsAdmin) { %>
<script type="text/javascript">
    Portal.initialize(<%=PortalContext.Current.PortalPage.PageId %>);
    _IG_initDrag(document.getElementById("main"), Portal.dragComplete);
    
    function configComplete(result) {
        tb_remove();
        if (result == "OK") { location.reload(); }
    }
</script>
<% } %>

</body>
</html>

